﻿window.onload = function () {
    var touxiang = @ViewBag.touxiang;
    if (touxiang) {
        /*需要网络才能获取QQ头像*/
        var url = 'https://q1.qlogo.cn/g?b=qq&nk=' + touxiang + '&s=100&t=0';
        var QQ_hdad = document.getElementById("QQ_hdad");
        QQ_hdad.src = url;
    }
    else {
        QQ_hdad.src = "~/images/头像/WCH1.jpg";
    }
}